﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ApprovalTests;
using ApprovalTests.WinForms;
using ApprovalTests.Reporters;
using System.Windows.Forms;

namespace WinFormsApprovalTest
{
    [TestClass]
    [UseReporter(typeof(ApprovalTests.Reporters.DiffReporter))]
    public class UnitTest1
    {

        #region StartFormTest
        [TestMethod]
        public void StartFormTest()
        {
            var myForm = new WindowsFormsApprovalDemo.Form1();
            ApprovalTests.WinForms.Approvals.Approve(myForm);
        }
        #endregion

        #region FormInProgressTest
        [TestMethod]
        public void FormInProgressTest()
        {
            var myForm = new WindowsFormsApprovalDemo.Form3();
            ApprovalTests.WinForms.Approvals.Approve(myForm);
        }
        #endregion

        #region ShowCalendar
        [TestMethod]
        public void ShowCalendar()
        {
            var myForm = new WindowsFormsApprovalDemo.Form2();
            myForm.monthCalendar1.SetDate(new DateTime(1975, 06, 28));
            myForm.monthCalendar1.TodayDate = new DateTime(1975, 06, 28);
            ApprovalTests.WinForms.Approvals.Approve(myForm.monthCalendar1);
        }
         #endregion
    }
}
